<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/9/12
  Time: 16:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>修改报修信息</title>
    <script src="${pageContext.request.contextPath}/static/jquery/jquery-3.1.1.js"></script>
    <script src="${pageContext.request.contextPath}/static/jquery/jquery.validate.js"></script>
    <link rel="stylesheet" href="/static/frame/layui/css/layui.css">
    <link rel="stylesheet" href="/static/frame/static/css/style.css">
    <link rel="icon" href="/static/frame/static/image/code.png">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/roleManagement.css">
    <link id="layuicss-layer" rel="stylesheet" href="file:///C:/Users/Administrator.ITIANKONG/Desktop/cpts_1065_vip-admin/frame/layui/css/modules/layer/default/layer.css?v=3.0.3" media="all">
    <link id="layuicss-laydate" rel="stylesheet" href="file:///C:/Users/Administrator.ITIANKONG/Desktop/cpts_1065_vip-admin/frame/layui/css/modules/laydate/default/laydate.css?v=5.0.2" media="all">
    <style>
        .showmessages{
            width: 460px;
            margin-top: 80px;
        }
        label.error {
            color: red;
            font-size: 12px;
        }
    </style>
</head>
<body class="body">
<div class="pageall">
    <div class="backphall">
        <div class="titleall">
            <div class="titleph">
                <img src="${pageContext.request.contextPath}/static/images/house.png" style="width:100%;height:100%;"/>
            </div>
            <div class="titleword">报修管理 >>> 报修列表 >>> 报修信息修改</div>
        </div>

        <div class="contentall"></div>
    </div>
    <div class="showmessages">
        <form action="updateRepairController.do"  method="post" class="layui-form" id="f">
            <input type="hidden" name="repair_id" value="${sessionScope.repair1.repair_id}">
            <div class="layui-form-item">
                <label class="layui-form-label">处理人：</label>
                <div class="layui-input-block">
                    <input type="text" name="repair_admin_id" lay-verify="required" value="${sessionScope.repair1.repair_admin_id}" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">处理情况：</label>
                <div class="layui-input-block">
                    <input type="text" name="repair_status" lay-verify="required" placeholder="填写数字：0-未处理，1-处理中，2-已处理" class="layui-input">
                </div>
            </div>
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="demo1">立即修改</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </form>
    </div>
</div>

</body>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/frame/layui/layui.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/frame/static/js/vip_comm.js"></script>

<script>
    /*
使用jquery validate限制表单
*/
    $("#f").validate({
        rules:{
            repair_admin_id:{
                required:true,
                digits:true,
                rangelength:[1,4]
            },
            repair_status:{
                required:true,
                digits:true,
                range:[0,2],
                rangelength:[1,1]
            }
        },
        messages:{
            repair_admin_id:{
                required:"处理人编号必须填写",
                rangelength:"长度为1到4位"
            },
            repair_status:{
                required:"处理情况必须填写",
                digits:"必须为整数",
                digits:"只能是数字0或1或2",
                rangelength:"长度为1"
            }
    }});
</script>

</html>
